//package com.hrc.springbootdemo.datasouce;
//
//import jakarta.annotation.Resource;
//import org.springframework.stereotype.Component;
//import org.springframework.transaction.TransactionManager;
//import org.springframework.transaction.support.TransactionTemplate;
//
//
//import javax.sql.DataSource;
//import java.sql.SQLException;
//
//@Component
//public class MyDataSource {
//    @Resource
//    private DataSource dataSource;
//
//    @Resource
//    private TransactionManager transactionManager;
//
//    @Resource
//    private TransactionTemplate transactionTemplate;
//
//    public Object test() throws SQLException {
//        return dataSource;
//    }
//
//
//}
